package org.dfl.plugin.editor.model;

import org.dfl.plugin.runner.RunListener;

/**
 * diagram's listener to catch its modifications
 * @author Piotr Wlodarczyk
 *
 */
public interface DiagramListener extends RunListener{
	/**
	 * fired when diagram was changed
	 * @param diagram - changed diagram
	 */
	public void diagramChanged(DflDiagram diagram);
	
	/**
	 * fired when diagram was enabled or disabled
	 * @param diagram
	 * @param enabled - true/false
	 */
	public void diagramEnabled(DflDiagram diagram, boolean enabled);
}
